package com.sdy.hospitalguard.biz.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.hospitalguard.biz.dto.EscortManageDTO;
import com.sdy.hospitalguard.biz.model.EscortAssociated;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 陪护关联表 Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2020-05-08
 */
public interface EscortAssociatedMapper extends BaseMapper<EscortAssociated> {

    IPage<EscortManageDTO> getEscortInformation(Page page,
                                                @Param("message") String message,
                                                @Param("areaId") Integer areaId,
                                                @Param("start") String start,
                                                @Param("end") String end,
                                                @Param("userAreaId") Integer userAreaId);

    List<EscortManageDTO> getEscortInformation(@Param("message") String message,
                                               @Param("areaId") Integer areaId,
                                               @Param("start") String start,
                                               @Param("end") String end,
                                               @Param("userAreaId") Integer userAreaId);

}
